﻿using FX_API;
using FX_API.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FX_API.Factory
{
    public class FXMessageFactory
    {
        public static FXMessage CreateMessage(string content)
        {
            return new FXMessage()
            {
                corpAccessToken = FenxiangAPI.corpAccessToken,
                corpId = FenxiangAPI.corpId,
                msgType = "text",
                text = new Text() { content = content },
                toUser = FenxiangAPI.NoticeUserId.Split(',').ToList()
            };
        }
    }
}
